<template>
	<view class="dy-price">
		<u--text mode="price" :size="currentPriceSize" :text="currentPrice" type="error" margin="0 14rpx 0 0"></u--text>
		<u--text mode="price" :text="originalPrice" type="info" decoration="line-through"
			margin="0 14rpx 0 0"></u--text>
		<u-tag v-if="!hideTag" :text="tag" type="error" plain size="mini" plainFill></u-tag>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		props: {
			originalPrice: Number,
			currentPrice: Number,
			currentPriceSize: {
				type: Number,
				default: 19
			},
			originalPriceSize: {
				type: Number,
				default: 15
			},
			tag: {
				type: String,
				default: '促销'
			},
			hideTag: {
				type: Boolean,
				default: false
			}
		}
	}
</script>

<style lang="scss">
	.dy-price {
		display: flex;
		align-items: center;
		// display: grid;
		// grid-column-gap: 20rpx;
		// grid-template-columns: 150rpx 120rpx;
	}
</style>